﻿using NewRetail.Application.Core.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewRetail.Application.Components.WeChat.CardVoucher.Entity
{
    /// <summary>
    /// 用户领券信息
    /// </summary>
    public class UserCouponsInfo : BaseEntity
    {
        /// <summary>
        /// 商户此次发放凭据号，需保持唯一性。如果相同的OutRequestNo,OpenId以及StockId，那么代金券Id会一直有
        /// </summary>
        public string outRequestNo { get; set; }
        /// <summary>
        /// 用户openid
        /// </summary>
        public string openId { get; set; }
        /// <summary>
        /// 代金券批次号
        /// </summary>
        public string stockId { get; set; }
        /// <summary>
        /// 代金券id
        /// </summary>
        public string couponId { get; set; }
        /// <summary>
        /// 代金券状态.  SENDED：可用   USED：已实扣  EXPIRED：已过期
        /// </summary>
        public string couponStatus { get; set; }
        /// <summary>
        /// 券类型.  NORMAL：满减券   CUT_TO：减至券
        /// </summary>
        public string couponType { get; set; }
        ///// <summary>
        ///// 核销时间
        ///// </summary>
        //public string ConsumeTime { get; set; }
        ///// <summary>
        ///// 核销商户号
        ///// </summary>
        //public string ConsumeMchid { get; set; }
        ///// <summary>
        ///// 支付单号
        ///// </summary>
        //public string TransactionId { get; set; }
    }
}
